package com.neusoft.ysu.populationmanagement.controller;


import com.neusoft.ysu.populationmanagement.entity.CommonResult;
import com.neusoft.ysu.populationmanagement.service.IIdnumSequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者：张幸晔
 * @since 2024-06-20
 */
@RestController
@RequestMapping("/idnum-sequence")
@CrossOrigin
public class IdnumSequenceController {
    @Autowired
    IIdnumSequenceService idnumSequenceService;
    @RequestMapping("/reset")
    public CommonResult resetSequence() {
        return idnumSequenceService.resetSequence();
    }
}
